package com.gupt.youhd.mapper;/*
@author name
@data 2023/4/9-0:00
*/

import com.gupt.youhd.entity.Orders;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrdersMapper {

    //查询该用户的所有订单
    List<Orders> retrieveAllOrderByUserId(int userId);

    //添加当前用户订单记录（购买
    int addOrders(Orders orders);
}
